import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

/*引入vant 和vant的样式库*/ 
import Vant from 'vant';
import 'vant/lib/index.css';
Vue.use(Vant);

/*以下按需加载*/ 
/* 懒加载*/ 
import { Lazyload } from 'vant';
Vue.use(Lazyload);

/*全局注册 模态框*/ 
import { Dialog } from 'vant';
Vue.use(Dialog);

/*swiper设置*/ 
import VueAwesomeSwiper from 'vue-awesome-swiper'
import 'swiper/css/swiper.css'
Vue.use(VueAwesomeSwiper, /* { default options with global component } */)

/* 索引栏*/
import { IndexBar, IndexAnchor } from 'vant';
Vue.use(IndexBar);
Vue.use(IndexAnchor);

/* 输入框 */ 
import { Field } from 'vant';

Vue.use(Field);
/* 空状态 */ 
import { Empty } from 'vant';
Vue.use(Empty);
/*搜索按钮*/
import { Search } from 'vant';
Vue.use(Search); 

/* 年薪布局 */ 
import { Sticky } from 'vant';
Vue.use(Sticky);
/*NoticeBar 通知栏*/ 
import { NoticeBar } from 'vant';
Vue.use(NoticeBar);
/* 引入组件*/
import nowPlaying from "./components/filmChild/nowPlaying.vue";
import comingSoon from "./components/filmChild/comingSoon.vue";
import swiperRow from "./components/filmChild/swiperRow.vue";

/* 注册组件（必须是全局 不然其他组件拿不到）*/
Vue.component("nowPlaying", nowPlaying)
Vue.component("comingSoon", comingSoon)
Vue.component("swiperRow", swiperRow)

Vue.config.productionTip = false

let app=new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')